<?php
namespace app\admin\validate;

use think\Validate;

/**
 * @author : SN
 * @time   : 2020/3/30 17:27
 * @des    : 校验
 */
class BaseValidate extends Validate
{
    public function checkData($data){
        $result = self::check($data);
        if (!$result){
            abort(200, self::getError());
        }
    }
}